/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 获取黑名单
export async function getBlack(params) {
  return request('/Api/YZ/CourierStation/blacklist', {
    method: 'POST',
    body: params,
    nonceKey: 'page,phone',
  });
}

// 添加黑名单
export async function addBlack(params) {
  return request('/Api/YZ/CourierStation/addBlack', {
    method: 'POST',
    body: params,
  });
}

// 删除黑名单
export async function delBlack(params) {
  return request('/Api/YZ/CourierStation/delBlack', {
    method: 'POST',
    body: params,
  });
}

// 设置黑名单同步状态
export async function setSync(params) {
  return request('/Api/YZ/CourierStation/setSync', {
    method: 'POST',
    body: params,
  });
}

// 获取黑名单同步状态
export async function getSync(params) {
  return request('/Api/YZ/CourierStation/getSync', {
    method: 'POST',
    body: params,
  });
}

// 黑名单扫描记录列表
export async function getBlackScanList(params) {
  return request('/Api/YZ/CourierStation/getBlackPhoneRecord', {
    method: 'POST',
    body: params,
  });
}
